package cn.sll.system.mapper;

import cn.sll.system.domain.Permission;
import cn.sll.base.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author sll
 * @since 2023-01-03
 */
public interface PermissionMapper extends BaseMapper<Permission> {

    void addRolePermission(@Param("rid") Long rid, @Param("permissions") List<Long> permissions);

    void deleteRolePermission(Long id);

    Permission findBySn(String permissionSn);

    List<String> findByLoginInfoId(Long loginInfoId);

}
